<?php defined('TSTP_VERSION') or die('forbidden');


/**
* MLT Web Engine
* http://www.molotsoft.ru
*
* @package MLT_WE
* @subpackage Test_Types
* @author Ivan Chistyakov <ivan@molotsoft.ru>
* @version $Id: resource.tstp.php 164 2009-03-07 09:48:19Z molotsoft@gmail.com $
* @link $HeadURL: http://test-types.googlecode.com/svn/tags/1.0.4/types/resource.tstp.php $
*/


function tstp_resource($var, $resource_type = NULL) {
	return is_resource($var) && (!is_null($resource_type) ? is_resource_type($var, trim($resource_type)) : TRUE); // lucky func
}

function tstp_res($var, $resource_type = NULL) { return tstp_resource($var, $resource_type); }
function tstp_r($var, $resource_type = NULL) { return tstp_resource($var, $resource_type); }


?>